 /*
 * @name: 纠纷单列表
 * @Author: along
 * @Date: 2019-07-28
 * @Last Modified by: along
 * @Last Modified time: 2020-07-28
 */
<template>
    <div class="container disputeIndex">
        <!-- title -->
        <div class="header-title">
            <p class="header-title-text">
                纠纷单列表
            </p>
        </div>
        <!-- header -->
        <div class="header-nav">
            <div class="header-left">
                <div class="header-new-box">
                    <p class="header-new-box-title">订单编号:</p>
                    <el-input
                        v-model="filterData.order_no"
                        placeholder="请输入订单编号"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">投诉编号:</p>
                    <el-input
                        v-model="filterData.dispute_no"
                        placeholder="请输入投诉编号"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">投诉原因:</p>
                    <el-select
                        v-model="filterData.reason"
                        clearable
                        filterable
                        placeholder="请选择"
                        size="small"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in resonList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"/>
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">投诉状态:</p>
                    <el-select
                        v-model="filterData.status"
                        clearable
                        filterable
                        placeholder="请选择"
                        size="small"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in stateList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"/>
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">用户信息:</p>
                    <el-input
                        v-model="filterData.user_keyword"
                        placeholder="姓名/手机号/ID"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">商品信息:</p>
                    <el-input
                        v-model="filterData.goods_keyword"
                        placeholder="商品名称/商品编号"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <span class="header-new-box-title">申请时间:</span>
                    <el-date-picker
                        v-model="filterData.date"
                        type="datetimerange"
                        range-separator="至"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期"
                        size="small"
                        @change="getTableData(1)"
                        :default-time="['00:00:00', '23:59:59']"
                        :style="{width: '350px'}"
                    />
                </div>
                <div class="header-new-box">
                    <el-button
                        type="primary"
                        size="small"
                    >
                        搜索
                    </el-button>
                </div>
            </div>
        </div>
        <!-- /header -->

        <!-- table -->
        <div
            v-loading="tableLoading"
            class="table-wrapper"
        >
            <div class="table-header">
                <div
                    class="table-header-inner"
                    :style="{minWidth: '1508px'}"
                >
                    <div
                        v-for="(title,index) in tableHeader"
                        :key="index"
                        class="table-header-title"
                        :class="'header'+ index"
                    >
                        {{ title }}
                    </div>
                </div>
            </div>
            <div
                class="table-body"
                v-if="tableData.length"
            >
                <div class="table-body-inner">
                    <div
                        v-for="(row,index) in tableData"
                        :key="row.review_no"
                        class="table-row"
                        :style="{minWidth: '1506px'}"
                    >
                        <!-- 订单信息 -->
                        <div class="row-top">
                            <div class="order_info">
                                <p class="order_info_item">
                                    投诉编号： {{ row.dispute_no ? row.dispute_no : '--' }}
                                </p>
                                <p class="order_info_item">
                                    订单编号： {{ row.order_info.order_no ? row.order_info.order_no : '--' }}
                                </p>
                                <p class="order_info_item">
                                    姓名： {{ row.student_info.true_name ? row.student_info.true_name : '--' }}
                                </p>
                                <p class="order_info_item">
                                    手机号： {{ row.student_info.phone ? row.student_info.phone : '--' }}
                                </p>
                                <p class="order_info_item">
                                    用户编号： {{ row.student_info.student_no ? row.student_info.student_no : '--' }}
                                </p>
                            </div>
                            <div class="order_info"/>
                        </div>

                        <!-- 评价数据列表 -->
                        <div class="row-content">
                            <div
                                class="table-column"
                                data-info="序号"
                                :style="{width: '60px', flex: 'none', alignItems: 'flex-start', marginTop: '3px'}"
                            >
                                {{ index + 1 }}
                            </div>
                            <div
                                class="table-column"
                                data-info="商品信息"
                                :style="{width: '300px', flex: 'none'}"
                            >
                                <div
                                    class="goods-info"
                                    v-if="row.goods_info"
                                >
                                    <img
                                        :src="row.goods_info.goods_cover"
                                        @click="fnShowPreview(row.goods_info.goods_cover)"
                                    >
                                    <div class="info-wrapper">
                                        <div class="info_main">
                                            {{ row.goods_info.goods_title }}
                                        </div>
                                        <div class="spec">
                                            {{ row.goods_product_info.spec_list | specFilter }}
                                        </div>
                                        <div>
                                            {{ row.goods_info.num ? 'x' + row.goods_info.num : '' }}
                                            {{ row.goods_info.goods_price ? '¥' + row.goods_info.goods_price : '' }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div
                                class="table-column"
                                data-info="申请时间"
                                :style="{width: 'auto', flex: 1, minWidth: '120px'}"
                            >
                                <div class="shop-title">
                                    {{ row.create_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm') }}
                                </div>
                            </div>
                            <div
                                class="table-column"
                                data-info="投诉原因"
                                :style="{width: 'auto', flex: 1, minWidth: '120px'}"
                            >
                                <div class="type-wrapper">
                                    {{ row.reason ? row.reason : '--' }}
                                </div>
                            </div>
                            <div
                                class="table-column"
                                data-info="投诉状态"
                                :style="{width: 'auto', flex: 1, minWidth: '120px'}"
                            >
                                <div class="status-wrapper">
                                    <p v-if="row.status == 1">发起投诉</p>
                                    <p v-else-if="row.status == 2">平台处理中</p>
                                    <p v-else-if="row.status == 3">投诉成立</p>
                                    <p v-else-if="row.status == -2">驳回投诉</p>
                                    <p v-else>--</p>
                                    <p v-if="row.hire_deal_expire_time && row.status == 1">
                                        待商家处理: {{ (row.hire_deal_expire_time - TIME) | tempFilter(SELF) }}
                                        <!-- 截止时间: {{ scope.row.hire_deal_expire_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm') }} -->
                                    </p>
                                    <p v-if="row.status == 2 && row.order_info.status == 4">
                                        剩余时间: {{ (row.order_info.complete_time - TIME) | tempFilter(SELF) }}
                                    </p>
                                    <p
                                        class="cursor-font"
                                        @click="fnShowDialog(row)"
                                        :style="{color: !(row.status == 2 && row.order_info.status == 4) ? '#C0C4CC' : '#409eff', pointerEvents: !(row.status == 2 && row.order_info.status == 4) ? 'none' : ''}"
                                    >
                                        延长售后时间
                                    </p>
                                </div>
                            </div>
                            <div
                                class="table-column"
                                data-info="操作"
                                :style="{width: '100px', flex: 'none'}"
                            >
                                <div class="btn-wrapper">
                                    <el-button
                                        type="text"
                                        class="curse-add"
                                        @click="fnHandleDetail(row)"
                                    >
                                        详情
                                    </el-button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div
                v-else
                class="empty"
            >
                <span>暂无数据</span>
            </div>
        </div>
        <!-- /table -->

        <!-- /分页 -->
        <div class="pagination-wrapper clearfix">
            <el-pagination
                background
                layout="total, prev, pager, next"
                :current-page.sync="page.now_page"
                :total="page.total_count"
                :page-size="page.page_size"
                @current-change="getTableData"
            />
        </div>

        <!-- 延长售后时间 -->
        <el-dialog
            title="延长售后时间"
            :visible.sync="dialogVisible"
            width="640px"
            :close-on-click-modal="false"
            :label-position="'left'"
        >
            <el-form
                :model="ruleForm"
                :rules="rules"
                ref="ruleForm"
                label-width="90px"
                class="demo-ruleForm"
            >
                <el-form-item
                    label="延长时间:"
                    prop="date"
                >
                    <div :style="{display: 'flex'}">
                        <el-input
                            v-model="ruleForm.date"
                            size="small"
                            :style="{width: '90%'}"
                            v-inserted
                            placeholder="请输入延长时间,只可以输入正整数"
                        />
                        <p :style="{position: 'relative', zIndex: '99', left: '-23px', color: '#606266'}">
                            天
                        </p>
                    </div>
                </el-form-item>
            </el-form>
            <span
                slot="footer"
                class="dialog-footer"
            >
                <el-button
                    @click="dialogVisible = false"
                    size="small"
                    :style="{width: '126px', height: '36px'}"
                >
                    取 消
                </el-button>
                <el-button
                    type="primary"
                    size="small"
                    :style="{width: '126px', height: '36px', marginLeft: '52px'}"
                    @click="fnHandleSaleDate('ruleForm')"
                >
                    确 定
                </el-button>
            </span>
        </el-dialog>

        <!-- 图片预览 -->
        <img-preview ref="preview" />
    </div>
</template>

<script>
import imgPreview from '@/components/common/img-preview';
import { getDate } from '@/assets/js/utils';
import { back } from '@/mixin/back';

export default {
    mixins: [back],
    components: {
        imgPreview
    },
    data () {
        return {
            ruleForm: {
                date: ''
            },
            rules: {
                date: [
                    { required: true, message: '延长时间不可以为空', trigger: 'change' }
                ]
            },
            dialogVisible: false,
            filterData: {
                order_no: '',
                dispute_no: '',
                reason: '',
                status: '',
                user_keyword: '',
                goods_keyword: '',
                start_time: '',
                end_time: '',
                date: []
            },
            resonList: [{ value: '', label: '全部' }, { value: '发货问题', label: '发货问题' }, { value: '物流问题', label: '物流问题' }, { value: '客服问题', label: '客服问题' }, { value: '售后问题', label: '售后问题' }, { value: '产品问题', label: '产品问题' }],
            stateList: [{ value: '', label: '全部' }, { value: 1, label: '发起投诉' }, { value: 2, label: '平台处理中' }, { value: 3, label: '投诉成立' }, { value: -2, label: '驳回投诉' }],
            page: {
                now_page: 1,
                total_count: 0,
                page_size: 0
            },
            tableData: [],
            tableLoading: false,
            tableHeader: ['序号','商品信息','申请时间','投诉原因','投诉状态','操作'],
            authResult: {},
            SELF: this,
            dispute_no: '',
            TIME: new Date().getTime() / 1000,
            TEMP: null
        };
    },
    filters: {
        specFilter(val) {
            let str = '';

            for (let i in val) {
                str += val[i].value;
                if (i < val.length - 1) {
                    str += ',';
                }
            }

            return str ? str : '--';
        },
        tempFilter(val, SELF) {
            return SELF.fnMinuteFormate(val);
        }
    },
    computed: {},
    directives: {
        inserted (el, binding, vnode, oldVnode) {
            el.addEventListener("keypress",e => {
                let event = e || window.event;
                let charcode = typeof event.charCode === 'number' ? event.charCode : event.keyCode;
                let re = /\d/;

                if(!re.test(String.fromCharCode(charcode)) && charcode > 9 && !event.ctrlKey){
                    if(event.preventDefault){
                        event.preventDefault();
                    }else{
                        event.returnValue = false;
                    }
                }
            });
        }
    },
    watch: {
        dialogVisible (val) {
            if(!val) {
                this.ruleForm.date = '';
                this.$refs['ruleForm'].resetFields();
            }
        }
    },
    mounted () {
        this.$store.commit('SET_HEADER', [{ title: "APP后台"},{title: '商城'},{title: '订单管理'},{title: '纠纷单列表'}]);
        this.authResult = this.$route.meta.authResult;
        this.getTableData();
    },
    methods: {
        /**
         * @description 获取表格数据
         */
        getTableData (page) {
            this.tableLoading = true;
            this.$post('/student/shop_goods_order_dispute%5Cget_list', {
                page_id: page || this.page.now_page,
                order_no: this.filterData.order_no,
                dispute_no: this.filterData.dispute_no,
                reason: this.filterData.reason,
                status: this.filterData.status,
                user_keyword: this.filterData.user_keyword,
                goods_keyword: this.filterData.goods_keyword,
                start_time: this.filterData.date === null ? '' : (this.filterData.date.length > 0 ? (new Date(this.filterData.date[0]).getTime() / 1000) : ''),
                end_time: this.filterData.date === null ? '' : (this.filterData.date.length > 0 ? (new Date(this.filterData.date[1]).getTime() / 1000) : '')
            }, resp => {
                if (resp.code == 1) {
                    this.tableData = resp.data.list;
                    this.page.now_page = resp.data.page.now_page;
                    this.page.total_count = resp.data.page.total_count;
                    this.page.page_size = resp.data.page.page_size;

                    if(this.tableData.length > 0) {
                        this.setTemp(this.tableData);
                    }
                }
                this.tableLoading = false;
            });
        },

        /**
         * @description 查看详情
         */
        fnHandleDetail (row) {
            if(!this.authResult.auth_detail) {
                this.$notify({
                    title: '提示',
                    message: '此权限仅限管理员',
                    type: 'warning',
                    duration: 2000
                });
                return;
            }
            this.$router.push({
                name: 'disputeDetail',
                query: {
                    dispute_no: row.dispute_no
                }
            });
        },

        /**
         * @description 打开弹窗
         */
        fnShowDialog (row) {
            this.dispute_no = row.dispute_no;
            this.dialogVisible = !this.dialogVisible;
        },

        /**
         * @description 延长售后时间
         */
        fnHandleSaleDate (formName) {
            this.$refs[formName].validate((valid) => {
                if (valid) {
                    this.$post('/student/shop_goods_order_dispute%5Cexpand_complete_time',{
                        dispute_no: this.dispute_no,
                        day: Number(this.ruleForm.date)
                    }, resp => {
                        if(resp.code == 1) {
                            this.dialogVisible = !this.dialogVisible;
                            this.getTableData();
                            this.$notify({
                                title: '提示',
                                message: '设置成功',
                                type: 'success',
                                duration: 2000
                            });
                        } else {
                            this.$notify({
                                title: '提示',
                                message: resp.msg,
                                type: 'warning',
                                duration: 2000
                            });
                        }
                    });
                } else {
                    return false;
                }
            });
        },

        /**
         * @description 处理列表倒计时
         */
        setTemp (list) {
            for(let key=0; key<list.length; key++) {
                if(list[key].status == 1 && list[key].hire_deal_expire_time >= 0) {
                    list[key].hire_deal_expire_time -= 1;
                }
                if(list[key].status == 2 && list[key].order_info.status == 4 && list[key].order_info.complete_time > 0) {
                    list[key].order_info.complete_time -= 1;
                }
                this.tableData = list;
            }
            clearTimeout(this.TEMP);
            this.TEMP = setTimeout(()=>{
                if(this.tableData.length > 0) {
                    this.setTemp(list);
                } else {
                    clearTimeout(this.TEMP);
                }
            },1000);
        },

        /**
         * @description 指定范围时间戳转换小时/分钟/秒
         * @param   {second}   Number   时间戳
         */
        fnMinuteFormate(second){
            const days = Math.floor(second / 86400);
            const hours = Math.floor((second % 86400) / 3600);
            const minutes = Math.floor(((second % 86400) % 3600) / 60);
            const seconds = Math.floor(((second % 86400) % 3600) % 60);
            const forMatDate = {
                days: days,
                hours: hours < 10 ? ('0' + hours) : hours,
                minutes: minutes < 10 ? ('0' + minutes) : minutes,
                seconds: seconds < 10 ? ('0' + seconds) : seconds
            };

            return forMatDate.days + '天' + forMatDate.hours + ':' + forMatDate.minutes + ':' + forMatDate.seconds;
        },

        /**
         * @description 查看图片
         * @param   {String}    images      //单图预览
         * @param   {Array}     images      //多图预览
         */
        fnShowPreview(images) {
            if(images && Object.prototype.toString.call(images) == '[object String]') {
                this.$refs.preview.show([
                    images
                ]);
            } else if (images && Object.prototype.toString.call(images) == '[object Array]') {
                this.$refs.preview.show(images);
            } else {
                this.$message({
                    type: 'warning',
                    message: '图片类型错误'
                });
            }
        },

        /**
         * @description 过滤函数
         */
        emptyFormatter(row, column, val) {
            if (!val) return '--';
            return val;
        }
    }
};
</script>

<style lang="less" scoped>
    .container {
        background-color: #fff;
        padding: 0px 15px 5px 15px;
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        .header-title {
            width: 100%;
            height: 68px;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            margin-bottom: 24px;
            border-bottom: 1px #F0F2F5 solid;
            box-sizing: border-box;
            padding: 0 24px;
            justify-content: space-between;
            &-text {
                color: #333333;
                font-size: 20px;
                font-weight: 500;
                position: relative;
                &::before {
                    content: '';
                    width:3px;
                    height:20px;
                    background:rgba(24,144,255,1);
                    position: absolute;
                    left: -8px;
                    top: -1px;
                }
            }
        }
        .header-nav {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
            .header-left, .header-right {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                padding: 0 12px;
            }
            .header-new-box {
                display: flex;
                margin-right: 15px;
                align-items: center;
                color: #606266;
                margin-bottom: 10px;
                white-space: nowrap;
                &-title {
                    margin-right: 2px;
                    white-space: nowrap;
                }
            }
        }

        /*table*/
        .table-wrapper {
            width: 100%;
            height: 100%;
            overflow: hidden;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            &::-webkit-scrollbar {
                width: 6px;
                height: 6px;
            }
            .table-header {
                width: 100%;
                height: 44px;
                background: #F2F2F2;
                overflow: auto;
                &::-webkit-scrollbar {
                    width: 0;
                    height: 0;
                }
                .table-header-inner {
                    width: auto;
                    height: 44px;
                    padding: 0 24px;
                    display: flex;
                    align-items: center;
                    box-sizing: border-box;
                    .table-header-title {
                        height: 100%;
                        line-height: 44px;
                        color: #333;
                        font-size: 14px;
                        font-weight: 500;
                        box-sizing: border-box;
                        white-space: nowrap;
                        text-align: center;
                        width: 150px;
                        padding: 0 12px;
                        &.header0 {
                            width: 60px;
                            min-width:60px ;
                            text-align: left;
                        }
                        &.header1 {
                            width: 300px;
                            text-align: left;
                        }
                        &.header2, &.header3, &.header4 {
                            width: auto;
                            flex: 1;
                            text-align: left;
                        }
                        &.header5 {
                            width: 100px;
                            text-align: left;
                        }
                    }
                }
            }
            // table
            .table-body {
                width: 100%;
                flex: 1;
                display: flex;
                flex-direction: column;
                overflow: auto;
                &::-webkit-scrollbar {
                    width: 6px;
                    height: 6px;
                }
                .table-body-inner {
                    flex: 1;
                    width: 100%;
                    .table-row {
                        background: #FBFBFB;
                        border-radius: 2px;
                        border: 1px #EEEEEE solid;
                        margin-top: 12px;
                        font-size: 14px;
                        font-family: PingFangSC-Regular, PingFang SC;
                        font-weight: 400;
                        color: #333333;
                        // 订单信息
                        .row-top {
                            height: 44px;
                            box-sizing: border-box;
                            background: #F7F7F7;
                            border-bottom: 1px #EEEEEE solid;
                            padding: 0 24px;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            font-size: 12px;
                            font-family: PingFangSC-Regular, PingFang SC;
                            font-weight: 400;
                            color: #333333;
                            .order_info {
                                display: flex;
                                align-items: center;
                                .order_info_item {
                                    margin-right: 32px;
                                }
                            }
                        }
                        .row-content {
                            box-sizing: border-box;
                            padding: 24px;
                            display: flex;
                            .table-column {
                                box-sizing: border-box;
                                padding: 0 12px;
                                display: flex;
                                align-items: center;
                            }

                            // 商品信息
                            .goods-info {
                                display: flex;
                                align-items: center;
                                font-size: 14px;

                                img {
                                    width: 80px;
                                    height: 80px;
                                    border-radius: 2px;
                                    cursor: pointer;
                                    margin-right: 10px;
                                }
                                .info-wrapper {
                                    height: 80px;
                                    display: flex;
                                    flex-direction: column;
                                    justify-content: space-between;
                                    .info_main {
                                        overflow: hidden;
                                        text-overflow: ellipsis;
                                        display: -webkit-box;
                                        -webkit-line-clamp: 2;
                                        -webkit-box-orient: vertical;
                                        line-height: 20px;
                                    }
                                    .spec {
                                        line-height: 20px;
                                    }
                                }
                            }
                            .btn-wrapper {
                                text-align: center;
                                .el-button {
                                    margin-left: 0;
                                    margin-right: 6px;
                                }
                            }
                        }
                    }
                }
            }
        }
        .empty {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #909399;
        }

        /* 表单 */
        .scope-price {
            width: 50px;
            height: 50px;
        }
        /* 字体高亮 */
        .cursor-font {
            color: rgb(64, 158, 255);
            cursor: pointer;
        }
        /* 分页 */
        .pagination-wrapper {
            padding-top: 10px;
            padding-bottom: 10px;
            .el-pagination {
                float: right;
                padding: 0;
                background-color: transparent;
            }
        }
    }
    /* 排序 */
    .sort-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        .sort-spliter {
            width: 1px;
            height: 12px;
            background: rgba(235, 235, 235, 1);
            margin: 0 10px;
            }
            .btn-sort {
            font-size: 14px;
            line-height: 1;
            color: #ccc;
            &:hover {
                color: #20a0ff;
            }
        }
    }
    .el-button-left {
        margin-left: 40px;
    }
    .el-button-right {
        margin-right: 10px;
    }
    .good-detail {
        display: flex;
        align-items: center;
        width: 240px !important;
        .cover {
            flex-shrink: 0;
            flex-grow: 0;
            width: 60px;
            height: 60px;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            margin-right: 5px;
            cursor: pointer;
        }
        .detail {
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
            .title {
                font-size: 14px;
                color: rgba(51, 51, 51, 1);
                line-height: 20px;
                letter-spacing: 1px;
            }
            .no {
                font-size: 14px;
                font-weight: 400;
                line-height: 17px;
                margin-top: 2px;
                text-align: left;
                color: #333333;
            }
            .type {
                font-size: 12px;
                font-weight: 400;
                color: rgba(96, 105, 114, 1);
                line-height: 17px;
                margin-top: 2px;
            }
        }
    }
    .dialog-footer {
        display: flex;
        justify-content: center;
    }
</style>
<style lang="less">
    .disputeIndex{
        .el-table__body-wrapper .el-table__body .el-table__row td {
            border-right: none;
        }
        .el-table__header-wrapper .el-table__header .has-gutter tr th {
            border-right: none;
        }
        .el-table .el-table_1_column_6  .cell {
            position: relative;
        }
        .el-range-editor--small .el-range-separator{
            padding: 0 1px !important;
        }
        .el-dialog__body {
            padding-bottom: 10px;
        }
        .el-dialog__header {
            padding-top: 10px;
            box-shadow:0px 1px 0px 0px rgba(233,233,233,1);
            display: flex;
            align-items: center;
            background: #FAFAFA;
            border-radius: 4px 4px 0 0;
            .el-dialog__title {
                font-weight: 500;
                color: #333;
                font-size: 14px;
            }
            .el-icon-close:before {
                color: rgb(194,194,194);
                font-size: 17px;
                font-weight: bold;
            }
            .el-dialog__headerbtn {
                top: 14px;
            }
        }
    }
</style>
